package com.dianping.cat.configuration.tp.entity;

import com.dianping.cat.configuration.tp.BaseEntity;
import com.dianping.cat.configuration.tp.IVisitor;
import java.util.LinkedHashSet;
import java.util.Set;




public class Domain
  extends BaseEntity<Domain>
{
  private String m_id;
/* 15 */   private Set<String> m_transactionTypes = new LinkedHashSet();





/* 21 */   public Domain(String id) { this.m_id = id; }




/* 26 */   public void accept(IVisitor visitor) { visitor.visitDomain(this); }


  public Domain addTransactionType(String transactionType) {
/* 30 */     this.m_transactionTypes.add(transactionType);
/* 31 */     return this;
  }


  public boolean equals(Object obj) {
/* 36 */     if (obj instanceof Domain) {
/* 37 */       Domain _o = (Domain)obj;

/* 39 */       if (!equals(getId(), _o.getId())) {
/* 40 */         return false;
      }

/* 43 */       return true;
    }

/* 46 */     return false;
  }


/* 50 */   public String getId() { return this.m_id; }



/* 54 */   public Set<String> getTransactionTypes() { return this.m_transactionTypes; }


/*    */




/* 68 */   public void mergeAttributes(Domain other) { assertAttributeEquals(other, "domain", "id", this.m_id, other.getId()); }



  public Domain setId(String id) {
/* 73 */     this.m_id = id;
/* 74 */     return this;
  }

  public Domain() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/tp/entity/Domain.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */